home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / emacs-complete / fsf / emacs / info / emacs-1 < prev    next >
Encoding:
GNU Info File  |  1994-10-06  |  47.2 KB  |  1,025 lines

  1. This is Info file ../info/emacs, produced by Makeinfo-1.54 from the
  2. input file emacs.texi.
  3.  
  4. 
  5. File: emacs,  Node: Top,  Next: Distrib,  Prev: (dir),  Up: (dir)
  6.  
  7. The Emacs Editor
  8. ****************
  9.  
  10.    Emacs is the extensible, customizable, self-documenting real-time
  11. display editor.  This Info file describes how to edit with Emacs and
  12. some of how to customize it, but not how to extend it.  It corresponds
  13. to GNU Emacs version 19.28.
  14.  
  15. * Menu:
  16.  
  17. * Distrib::          How to get the latest Emacs distribution.
  18. * Copying::          The GNU General Public License gives you permission
  19.             to redistribute GNU Emacs on certain terms;
  20.             it also explains that there is no warranty.
  21. * Intro::          An introduction to Emacs concepts.
  22. * Glossary::          The glossary.
  23. * Antinews::          Information about Emacs version 18.
  24. * MS-DOS::            Using Emacs on MS-DOS (otherwise known as "MS-DOG").
  25. * Manifesto::          What's GNU?  Gnu's Not Unix!
  26.  
  27. Indexes, nodes containing large menus
  28. * Key Index::          An item for each standard Emacs key sequence.
  29. * Command Index::     An item for each command name.
  30. * Variable Index::    An item for each documented variable.
  31. * Concept Index::     An item for each concept.
  32.  
  33. Important General Concepts
  34. * Screen::          How to interpret what you see on the screen.
  35. * User Input::          Kinds of input events (characters, buttons,
  36.                         function keys).
  37. * Keys::          Key sequences: what you type to request one
  38.                         editing action.
  39. * Commands::          Named functions run by key sequences to do editing.
  40. * Text Characters::   Character set for text (the contents of buffers
  41.             and strings).
  42. * Entering Emacs::    Starting Emacs from the shell.
  43. * Exiting::          Stopping or killing Emacs.
  44. * Command Arguments:: Hairy startup options.
  45.  
  46. Fundamental Editing Commands
  47. * Basic::          The most basic editing commands.
  48. * Minibuffer::          Entering arguments that are prompted for.
  49. * M-x::              Invoking commands by their names.
  50. * Help::          Commands for asking Emacs about its commands.
  51.  
  52. Important Text-Changing Commands
  53. * Mark::          The mark: how to delimit a "region" of text.
  54. * Killing::          Killing text.
  55. * Yanking::          Recovering killed text.  Moving text.
  56. * Accumulating Text:: Other ways of copying text.
  57. * Rectangles::          Operating on the text inside a rectangle on the screen.
  58. * Registers::          Saving a text string or a location in the buffer.
  59. * Display::          Controlling what text is displayed.
  60. * Search::          Finding or replacing occurrences of a string.
  61. * Fixit::          Commands especially useful for fixing typos.
  62.  
  63. Larger Units of Text
  64. * Files::          All about handling files.
  65. * Buffers::          Multiple buffers; editing several files at once.
  66. * Windows::          Viewing two pieces of text at once.
  67. * Frames::          Running the same Emacs session in multiple X windows.
  68.  
  69. Advanced Features
  70. * Major Modes::          Text mode vs. Lisp mode vs. C mode ...
  71. * Indentation::          Editing the white space at the beginnings of lines.
  72. * Text::          Commands and modes for editing English.
  73. * Programs::          Commands and modes for editing programs.
  74. * Building::          Compiling, running and debugging programs.
  75. * Abbrevs::          How to define text abbreviations to reduce
  76.             the number of characters you must type.
  77. * Picture::          Editing pictures made up of characters
  78.             using the quarter-plane screen model.
  79. * Sending Mail::      Sending mail in Emacs.
  80. * Rmail::          Reading mail in Emacs.
  81. * Dired::          You can "edit" a directory to manage files in it.
  82. * Calendar/Diary::    The calendar and diary facilities.
  83. * GNUS::          How to read netnews with Emacs.
  84. * Shell::          Executing shell commands from Emacs.
  85. * Emacs Server::      Using Emacs as an editing server for `mail', etc.
  86. * Hardcopy::          Printing buffers or regions.
  87. * Sorting::          Sorting lines, paragraphs or pages within Emacs.
  88. * Narrowing::          Restricting display and editing to a portion
  89.             of the buffer.
  90. * Two-Column::          Splitting apart columns to edit them
  91.              in side-by-side windows.
  92. * Editing Binary Files:: Using Hexl mode to edit binary files.
  93. * Saving Emacs Sessions:: Saving Emacs state from one session to the next.
  94. * Recursive Edit::    A command can allow you to do editing
  95.             "within the command".  This is called a
  96.             `recursive editing level'.
  97. * Emulation::          Emulating some other editors with Emacs.
  98. * Dissociated Press:: Dissociating text for fun.
  99. * Amusements::          Various games and hacks.
  100. * Customization::     Modifying the behavior of Emacs.
  101.  
  102. Recovery from Problems.
  103. * Quitting::          Quitting and aborting.
  104. * Lossage::          What to do if Emacs is hung or malfunctioning.
  105. * Bugs::          How and when to report a bug.
  106. * Service::          How to get help for your own Emacs needs.
  107.  
  108. Here are some other nodes which are really inferiors of the ones
  109. already listed, mentioned here so you can get to them in one step:
  110.  
  111.  -- The Detailed Node Listing --
  112.  
  113. The Organization of the Screen
  114.  
  115. * Point::    The place in the text where editing commands operate.
  116. * Echo Area::   Short messages appear at the bottom of the screen.
  117. * Mode Line::    Interpreting the mode line.
  118.  
  119. Basic Editing Commands
  120.  
  121. * Inserting Text::     Inserting text by simply typing it.
  122. * Moving Point::       How to move the cursor to the place where you want to
  123.              change something.
  124. * Erasing::           Deleting and killing text.
  125. * Undo::           Undoing recently made changes in the text.
  126. * Files: Basic Files.  Visiting, creating, and saving files.
  127. * Help: Basic Help.    Asking what a character does.
  128. * Blank Lines::           Commands to make or delete blank lines.
  129. * Continuation Lines:: Lines too wide for the screen.
  130. * Position Info::      What page, line, row, or column is point on?
  131. * Arguments::           Numeric arguments for repeating a command.
  132.  
  133. The Minibuffer
  134.  
  135. * Minibuffer File::       Entering file names with the minibuffer.
  136. * Minibuffer Edit::       How to edit in the minibuffer.
  137. * Completion::          An abbreviation facility for minibuffer input.
  138. * Minibuffer History::      Reusing recent minibuffer arguments.
  139. * Repetition::          Re-executing commands that used the minibuffer.
  140.  
  141. Help
  142.  
  143. * Help Summary::    Brief list of all Help commands.
  144. * Key Help::        Asking what a key does in Emacs.
  145. * Name Help::        Asking about a command, variable or function name.
  146. * Apropos::        Asking what pertains to a given topic.
  147. * Library Keywords::    Finding Lisp libraries by keywords (topics).
  148. * Misc Help::        Other help commands.
  149.  
  150. The Mark and the Region
  151.  
  152. * Setting Mark::    Commands to set the mark.
  153. * Transient Mark::    How to make Emacs highlight the region-
  154.               when there is one.
  155. * Using Region::    Summary of ways to operate on contents of the region.
  156. * Marking Objects::    Commands to put region around textual units.
  157. * Mark Ring::        Previous mark positions saved so you can go back there.
  158. * Global Mark Ring::    Previous mark positions in various buffers.
  159.  
  160. Deletion and Killing
  161.  
  162. * Deletion::        Commands for deleting small amounts of text and
  163.               blank areas.
  164. * Killing by Lines::    How to kill entire lines of text at one time.
  165. * Other Kill Commands:: Commands to kill large regions of text and
  166.               syntactic units such as words and sentences.
  167.  
  168. Yanking
  169.  
  170. * Kill Ring::        Where killed text is stored.  Basic yanking.
  171. * Appending Kills::    Several kills in a row all yank together.
  172. * Earlier Kills::    Yanking something killed some time ago.
  173.  
  174. Registers
  175.  
  176. * RegPos::             Saving positions in registers.
  177. * RegText::            Saving text in registers.
  178. * RegRect::            Saving rectangles in registers.
  179. * RegConfig::              Saving window configurations in registers.
  180. * RegFiles::           File names in registers.
  181. * Bookmarks::              Bookmarks are like registers, but persistent.
  182.  
  183. Controlling the Display
  184.  
  185. * Scrolling::           Moving text up and down in a window.
  186. * Horizontal Scrolling::   Moving text left and right in a window.
  187. * Selective Display::       Hiding lines with lots of indentation.
  188. * Optional Mode Line::       Optional mode line features.
  189. * European Display::       Displaying (and entering) European characters.
  190. * Display Vars::       Information on variables for customizing display.
  191.  
  192. Searching and Replacement
  193.  
  194. * Incremental Search::       Search happens as you type the string.
  195. * Nonincremental Search::  Specify entire string and then search.
  196. * Word Search::           Search for sequence of words.
  197. * Regexp Search::       Search for match for a regexp.
  198. * Regexps::           Syntax of regular expressions.
  199. * Search Case::           To ignore case while searching, or not.
  200. * Replace::           Search, and replace some or all matches.
  201. * Other Repeating Search:: Operating on all matches for some regexp.
  202.  
  203. Replacement Commands
  204.  
  205. * Unconditional Replace::  Replacing all matches for a string.
  206. * Regexp Replace::       Replacing all matches for a regexp.
  207. * Replacement and Case::   How replacements preserve case of letters.
  208. * Query Replace::       How to use querying.
  209.  
  210. Commands for Fixing Typos
  211.  
  212. * Kill Errors:: Commands to kill a batch of recently entered text.
  213. * Transpose::    Exchanging two characters, words, lines, lists...
  214. * Fixing Case:: Correcting case of last word entered.
  215. * Spelling::    Apply spelling checker to a word, or a whole file.
  216.  
  217. File Handling
  218.  
  219. * File Names::         How to type and edit file name arguments.
  220. * Visiting::         Visiting a file prepares Emacs to edit the file.
  221. * Saving::         Saving makes your changes permanent.
  222. * Reverting::         Reverting cancels all the changes not saved.
  223. * Auto Save::         Auto Save periodically protects against loss of data.
  224. * File Aliases::     Handling multiple names for one file.
  225. * Version Control::  Version control systems (RCS and SCCS).
  226. * ListDir::         Listing the contents of a file directory.
  227. * Comparing Files::  Finding where two files differ.
  228. * Misc File Ops::    Other things you can do on files.
  229.  
  230. Saving Files
  231.  
  232. * Backup::      How Emacs saves the old version of your file.
  233. * Interlocking::  How Emacs protects against simultaneous editing
  234.             of one file by two users.
  235.  
  236. Version Control
  237.  
  238. * Concepts of VC::        Basic version control information;
  239.                   checking files in and out.
  240. * Editing with VC::        Commands for editing a file maintained
  241.                   with version control.
  242. * Variables for Check-in/out::    Variables that affect the commands used
  243.                   to check files in or out.
  244. * Log Entries::            Logging your changes.
  245. * Change Logs and VC::        Generating a change log file from log
  246.                   entries.
  247. * Old Versions::        Examining and comparing old versions.
  248. * VC Status::            Commands to view the VC status of files and
  249.                   look at log entries.
  250. * Renaming and VC::        A command to rename both the source and
  251.                   master file correctly.
  252. * Snapshots::            How to make and use snapshots, a set of
  253.                   file versions that can be treated as a unit.
  254. * Version Headers::        Inserting version control headers into
  255.                   working files.
  256.  
  257. Using Multiple Buffers
  258.  
  259. * Select Buffer::      Creating a new buffer or reselecting an old one.
  260. * List Buffers::       Getting a list of buffers that exist.
  261. * Misc Buffer::           Renaming; changing read-onliness; copying text.
  262. * Kill Buffer::           Killing buffers you no longer need.
  263. * Several Buffers::    How to go through the list of all buffers
  264.              and operate variously on several of them.
  265.  
  266. Multiple Windows
  267.  
  268. * Basic Window::       Introduction to Emacs windows.
  269. * Split Window::       New windows are made by splitting existing windows.
  270. * Other Window::       Moving to another window or doing something to it.
  271. * Pop Up Window::      Finding a file or buffer in another window.
  272. * Change Window::      Deleting windows and changing their sizes.
  273.  
  274. Frames and X Windows
  275.  
  276. * Mouse Commands::     Moving, cutting, and pasting, with the mouse.
  277. * Secondary Selection::Cutting without altering point and mark.
  278. * Mouse References::   Using the mouse to select an item from a list.
  279. * Mode Line Mouse::    Mouse clicks on the mode line.
  280. * Creating Frames::    Creating additional Emacs frames with various contents.
  281. * Special Buffer Frames::  You can make certain buffers have their own frames.
  282. * Frame Parameters::   Changing the colors and other modes of frames.
  283. * Scroll Bars::           How to enable and disable scroll bars; how to use them.
  284. * Menu Bars::           Enabling and disabling the menu bar.
  285. * Faces::           How to change the display style using faces.
  286. * Modifying Faces::    How to change what a particular face looks like.
  287. * Misc X::           Iconifying and deleting frames.    Region highlighting.
  288.  
  289. Major Modes
  290.  
  291. * Choosing Modes::     How major modes are specified or chosen.
  292.  
  293. Indentation
  294.  
  295. * Indentation Commands::  Various commands and techniques for indentation.
  296. * Tab Stops::          You can set arbitrary "tab stops" and then
  297.                 indent to the next tab stop when you want to.
  298. * Just Spaces::          You can request indentation using just spaces.
  299.  
  300. Commands for Human Languages
  301.  
  302. * Words::      Moving over and killing words.
  303. * Sentences::      Moving over and killing sentences.
  304. * Paragraphs::      Moving over paragraphs.
  305. * Pages::      Moving over pages.
  306. * Filling::      Filling or justifying text.
  307. * Case::      Changing the case of text.
  308. * Text Mode::      The major modes for editing text files.
  309. * Outline Mode::  The major mode for editing outlines.
  310. * TeX Mode::      The major modes for editing input to the formatter TeX.
  311. * Nroff Mode::      The major mode for editing input to the formatter nroff.
  312.  
  313. Filling Text
  314.  
  315. * Auto Fill::      Auto Fill mode breaks long lines automatically.
  316. * Fill Commands:: Commands to refill paragraphs and center lines.
  317. * Fill Prefix::      Filling when every line is indented or in a comment, etc.
  318.  
  319. Editing Programs
  320.  
  321. * Program Modes::     Major modes for editing programs.
  322. * Lists::          Expressions with balanced parentheses.
  323. * List Commands::     The commands for working with list and sexps.
  324. * Defuns::          Each program is made up of separate functions.
  325.             There are editing commands to operate on them.
  326. * Program Indent::    Adjusting indentation to show the nesting.
  327. * Matching::          Insertion of a close-delimiter flashes matching open.
  328. * Comments::          Inserting, killing, and aligning comments.
  329. * Balanced Editing::  Inserting two matching parentheses at once, etc.
  330. * Symbol Completion:: Completion on symbol names of your program or language.
  331. * Documentation::     Getting documentation of functions you plan to call.
  332. * Change Log::          Maintaining a change history for your program.
  333. * Tags::          Go direct to any function in your program in one
  334.             command.  Tags remembers which file it is in.
  335. * Emerge::          A convenient way of merging two versions of a program.
  336. * C Mode::          Special commands of C mode (and C++ mode).
  337. * Fortran::          Fortran mode and its special features.
  338. * Asm Mode::          Asm mode and its special features.
  339.  
  340. Indentation for Programs
  341.  
  342. * Basic Indent::    Indenting a single line.
  343. * Multi-line Indent::    Commands to reindent many lines at once.
  344. * Lisp Indent::        Specifying how each Lisp function should be indented.
  345. * C Indent::        Choosing an indentation style for C code.
  346.  
  347. Tags Tables
  348.  
  349. * Tag Syntax::        Tag syntax for various types of code and text files.
  350. * Create Tags Table::    Creating a tags table with `etags'.
  351. * Select Tags Table::    How to visit a tags table.
  352. * Find Tag::        Commands to find the definition of a specific tag.
  353. * Tags Search::        Using a tags table for searching and replacing.
  354. * Tags Stepping::    Visiting files in a tags table, one by one.
  355. * List Tags::        Listing and finding tags defined in a file.
  356.  
  357. Merging Files with Emerge
  358.  
  359. * Overview of Emerge::        How to start Emerge.  Basic concepts.
  360. * Submodes of Emerge::        Fast mode vs. Edit mode.
  361.                   Skip Prefers mode and Auto Advance mode.
  362. * State of Difference::        You do the merge by specifying state A or B
  363.                   for each difference.
  364. * Merge Commands::        Commands for selecting a difference,
  365.                   changing states of differences, etc.
  366. * Exiting Emerge::        What to do when you've finished the merge.
  367. * Combining in Emerge::        How to keep both alternatives for a difference.
  368. * Fine Points of Emerge::   Misc.
  369.  
  370. Compiling and Testing Programs
  371.  
  372. * Compilation::              Compiling programs in languages other
  373.                     than Lisp (C, Pascal, etc.)
  374. * Debuggers::              Running symbolic debuggers for
  375.                     non-Lisp programs.
  376. * Executing Lisp::          Various modes for editing Lisp programs,
  377.                     with different facilities for running
  378.                     the Lisp programs.
  379. * Libraries: Lisp Libraries.      Creating Lisp programs to run in Emacs.
  380. * Interaction: Lisp Interaction.  Executing Lisp in an Emacs buffer.
  381. * Eval: Lisp Eval.          Executing a single Lisp expression in Emacs.
  382. * External Lisp::          Communicating through Emacs with a
  383.                     separate Lisp.
  384.  
  385. Running Debuggers Under Emacs
  386.  
  387. * Starting GUD::    How to start a debugger subprocess.
  388. * Debugger Operation::    Connection between the debugger and source buffers.
  389. * Commands of GUD::    Key bindings for common commands.
  390. * GUD Customization::    Defining your own commands for GUD.
  391.  
  392. Abbrevs
  393.  
  394. * Abbrev Concepts::   Fundamentals of defined abbrevs.
  395. * Defining Abbrevs::  Defining an abbrev, so it will expand when typed.
  396. * Expanding Abbrevs:: Controlling expansion: prefixes, canceling expansion.
  397. * Editing Abbrevs::   Viewing or editing the entire list of defined abbrevs.
  398. * Saving Abbrevs::    Saving the entire list of abbrevs for another session.
  399. * Dynamic Abbrevs::   Abbreviations for words already in the buffer.
  400.  
  401. Editing Pictures
  402.  
  403. * Basic Picture::      Basic concepts and simple commands of Picture Mode.
  404. * Insert in Picture::      Controlling direction of cursor motion
  405.                 after "self-inserting" characters.
  406. * Tabs in Picture::      Various features for tab stops and indentation.
  407. * Rectangles in Picture:: Clearing and superimposing rectangles.
  408.  
  409. Sending Mail
  410.  
  411. * Mail Format::          Format of the mail being composed.
  412. * Mail Headers::             Details of permitted mail header fields.
  413. * Mail Aliases::             Abbreviating and grouping mail addresses.
  414. * Mail Mode::            Special commands for editing mail being composed.
  415. * Distracting NSA::          How to distract the NSA's attention.
  416.  
  417. Reading Mail with Rmail
  418.  
  419. * Rmail Basics.              Basic concepts of Rmail, and simple use.
  420. * Rmail Scrolling::          Scrolling through a message.
  421. * Rmail Motion::             Moving to another message.
  422. * Rmail Deletion::           Deleting and expunging messages.
  423. * Rmail Inbox::              How mail gets into the Rmail file.
  424. * Rmail Files::              Using multiple Rmail files.
  425. * Rmail Output::             Copying message out to files.
  426. * Rmail Labels::             Classifying messages by labeling them.
  427. * Rmail Reply::              Sending replies to messages you are viewing.
  428. * Rmail Summary::            Summaries show brief info on many messages.
  429. * Rmail Sorting::            Sorting messages in Rmail.
  430. * Rmail Display::            How Rmail displays a message; customization.
  431. * Rmail Editing::            Editing message text and headers in Rmail.
  432. * Rmail Digest::             Extracting the messages from a digest message.
  433. * Out of Rmail::         Converting an Rmail file to mailbox format.
  434. * Rmail Rot13::              Reading messages encoded in the rot13 code.
  435.  
  436. Dired, the Directory Editor
  437.  
  438. * Dired Enter::          How to invoke Dired.
  439. * Dired Commands::           Commands in the Dired buffer.
  440. * Dired Deletion::           Deleting files with Dired.
  441. * Flagging Many Files::      Flagging files based on their names.
  442. * Dired Visiting::           Other file operations through Dired.
  443. * Marks vs Flags::         Flagging for deletion vs marking.
  444. * Operating on Files::         How to copy, rename, print, compress, etc.
  445.                    either one file or several files.
  446. * Shell Commands in Dired::  Running a shell command on the marked files.
  447. * Transforming File Names::  Using patterns to rename multiple files.
  448. * Comparison in Dired::         Running `diff' by way of Dired.
  449. * Subdirectories in Dired::  Adding subdirectories to the Dired buffer.
  450. * Subdirectory Motion::         Moving across subdirectories, and up and down.
  451. * Hiding Subdirectories::    Making subdirectories visible or invisible.
  452. * Dired Updating::           Discarding lines for files of no interest.
  453. * Dired and Find::         Using `find' to choose the files for Dired.
  454.  
  455. The Calendar and the Diary
  456.  
  457. * Calendar Motion::      Moving through the calendar; selecting a date.
  458. * Scroll Calendar::      Bringing earlier or later months onto the screen.
  459. * Counting Days::      How many days are there between two dates?
  460. * General Calendar::      Exiting or recomputing the calendar.
  461. * Holidays::          Displaying dates of holidays.
  462. * Sunrise/Sunset::      Displaying local times of sunrise and sunset.
  463. * Lunar Phases::      Displaying phases of the moon.
  464. * Other Calendars::      Converting dates to other calendar systems.
  465. * Diary::          Displaying events from your diary.
  466. * Appointments::      Reminders when it's time to do something.
  467. * Daylight Savings::      How to specify when daylight savings time is active.
  468.  
  469. Movement in the Calendar
  470.  
  471. * Calendar Unit Motion::      Moving by days, weeks, months, and years.
  472. * Move to Beginning or End::  Moving to start/end of weeks, months, and years.
  473. * Specified Dates::          Moving to the current date or another
  474.                 specific date.
  475.  
  476. Conversion To and From Other Calendars
  477.  
  478. * Calendar Systems::       The calendars Emacs understands
  479.                  (aside from Gregorian).
  480. * To Other Calendar::       Converting the selected date to various calendars.
  481. * From Other Calendar::       Moving to a date specified in another calendar.
  482. * Mayan Calendar::       Moving to a date specified in a Mayan calendar.
  483.  
  484. The Diary
  485.  
  486. * Diary Commands::       Viewing diary entries and associated calendar dates.
  487. * Format of Diary File::   Entering events in your diary.
  488. * Date Formats::       Various ways you can specify dates.
  489. * Adding to Diary::       Commands to create diary entries.
  490. * Special Diary Entries::  Anniversaries, blocks of dates, cyclic entries, etc.
  491.  
  492. GNUS
  493.  
  494. * Buffers of GNUS::       The Newsgroups, Summary and Article buffers.
  495. * GNUS Startup::       What you should know about starting GNUS.
  496. * Summary of GNUS::       A short description of the basic GNUS commands.
  497.  
  498. Running Shell Commands from Emacs
  499.  
  500. * Single Shell::       How to run one shell command and return.
  501. * Interactive Shell::       Permanent shell taking input via Emacs.
  502. * Shell Mode::           Special Emacs commands used with permanent shell.
  503. * Shell History::          Repeating previous commands in a shell buffer.
  504. * Shell Options::          Options for customizing Shell mode.
  505. * Remote Host::           Connecting to another computer.
  506.  
  507. Customization
  508.  
  509. * Minor Modes::           Each minor mode is one feature you can turn on
  510.                  independently of any others.
  511. * Variables::           Many Emacs commands examine Emacs variables
  512.                  to decide what to do; by setting variables,
  513.                  you can control their functioning.
  514. * Keyboard Macros::       A keyboard macro records a sequence of
  515.                  keystrokes to be replayed with a single
  516.                  command.
  517. * Key Bindings::       The keymaps say what command each key runs.
  518.                  By changing them, you can "redefine keys".
  519. * Keyboard Translations::  If your keyboard passes an undesired code
  520.                  for a key, you can tell Emacs to
  521.                  substitute another code.
  522. * Syntax::           The syntax table controls how words and
  523.                   expressions are parsed.
  524. * Init File::           How to write common customizations in the
  525.                  `.emacs' file.
  526.  
  527. Variables
  528.  
  529. * Examining::         Examining or setting one variable's value.
  530. * Edit Options::     Examining or editing list of all variables' values.
  531. * Hooks::         Hook variables let you specify programs for parts
  532.                of Emacs to run on particular occasions.
  533. * Locals::         Per-buffer values of variables.
  534. * File Variables::   How files can specify variable values.
  535.  
  536. Keyboard Macros
  537.  
  538. * Basic Kbd Macro::  Defining and running keyboard macros.
  539. * Save Kbd Macro::   Giving keyboard macros names; saving them in files.
  540. * Kbd Macro Query::  Keyboard macros that do different things each use.
  541.  
  542. Customizing Key Bindings
  543.  
  544. * Keymaps::         Generalities.  The global keymap.
  545. * Prefix Keymaps::   Keymaps for prefix keys.
  546. * Local Keymaps::    Major and minor modes have their own keymaps.
  547. * Minibuffer Maps::  The minibuffer uses its own local keymaps.
  548. * Rebinding::         How to redefine one key's meaning conveniently.
  549. * Init Rebinding::   Rebinding keys with your init file, `.emacs'.
  550. * Function Keys::    Rebinding terminal function keys.
  551. * Named ASCII Chars::Distinguishing TAB from `C-i', and so on.
  552. * Mouse Buttons::    Rebinding mouse buttons in Emacs.
  553. * Disabling::         Disabling a command means confirmation is required
  554.                before it can be executed.  This is done to protect
  555.                beginners from surprises.
  556.  
  557. The Init File, `~/.emacs'
  558.  
  559. * Init Syntax::         Syntax of constants in Emacs Lisp.
  560. * Init Examples::    How to do some things with an init file.
  561. * Terminal Init::    Each terminal type can have an init file.
  562. * Find Init::         How Emacs finds the init file.
  563.  
  564. Dealing with Emacs Trouble
  565.  
  566. * DEL Gets Help::    What to do if DEL doesn't delete.
  567. * Stuck Recursive::    `[...]' in mode line around the parentheses.
  568. * Screen Garbled::    Garbage on the screen.
  569. * Text Garbled::    Garbage in the text.
  570. * Unasked-for Search::    Spontaneous entry to incremental search.
  571. * Emergency Escape::    Emergency escape--
  572.               What to do if Emacs stops responding.
  573. * Total Frustration::    When you are at your wits' end.
  574.  
  575. Reporting Bugs
  576.  
  577. * Criteria:  Bug Criteria.     Have you really found a bug?
  578. * Understanding Bug Reporting::     How to report a bug effectively.
  579. * Checklist::             Steps to follow for a good bug report.
  580. * Sending Patches::         How to send a patch for GNU Emacs.
  581.  
  582. Command Line Options and Arguments
  583.  
  584. * Ordinary Arguments::    Arguments to visit files, load libraries,
  585.               and call functions.
  586. * Initial Options::    Arguments that must come at the start of the command.
  587. * Command Example::    Examples of using command line arguments.
  588. * Resume Arguments::    Specifying arguments when you resume a running Emacs.
  589. * Environment::        Environment variables that Emacs uses.
  590.  
  591. * Display X::        Changing the default display and using remote login.
  592. * Font X::        Choosing a font for text, under X.
  593. * Colors X::        Choosing colors, under X.
  594. * Window Size X::    Start-up window size, under X.
  595. * Borders X::        Internal and external borders, under X.
  596. * Icons X::        Choosing what sort of icon to use, under X.
  597. * Resources X::        Advanced use of classes and resources, under X.
  598.  
  599. Environment Variables
  600.  
  601. * General Variables::      Environment variables that all versions of Emacs use.
  602. * Misc Variables::      Certain system specific variables.
  603.  
  604. 
  605. File: emacs,  Node: Distrib,  Next: Copying,  Prev: Top,  Up: Top
  606.  
  607. Distribution
  608. ************
  609.  
  610.    GNU Emacs is "free software"; this means that everyone is free to
  611. use it and free to redistribute it on certain conditions.  GNU Emacs is
  612. not in the public domain; it is copyrighted and there are restrictions
  613. on its distribution, but these restrictions are designed to permit
  614. everything that a good cooperating citizen would want to do.  What is
  615. not allowed is to try to prevent others from further sharing any version
  616. of GNU Emacs that they might get from you.  The precise conditions are
  617. found in the GNU General Public License that comes with Emacs and also
  618. appears following this section.
  619.  
  620.    The easiest way to get a copy of GNU Emacs is from someone else who
  621. has it.  You need not ask for our permission to do so, or tell any one
  622. else; just copy it.  If you have access to the Internet, you can get the
  623. latest distribution version of GNU Emacs from host `prep.ai.mit.edu'
  624. using anonymous login.  See the file `/pub/gnu/GETTING.GNU.SOFTWARE' on
  625. that host to find out about your options for copying and which files to
  626. use.
  627.  
  628.    You may also receive GNU Emacs when you buy a computer.  Computer
  629. manufacturers are free to distribute copies on the same terms that
  630. apply to everyone else.  These terms require them to give you the full
  631. sources, including whatever changes they may have made, and to permit
  632. you to redistribute the GNU Emacs received from them under the usual
  633. terms of the General Public License.  In other words, the program must
  634. be free for you when you get it, not just free for the manufacturer.
  635.  
  636.    You can also order copies of GNU Emacs from the Free Software
  637. Foundation, on various magnetic media or on CD-ROM.  This is a
  638. convenient and reliable way to get a copy; it is also a good way to help
  639. fund our work.  (The Foundation has always received most of its funds in
  640. this way.)  An order form is included at the end of manuals printed by
  641. the Foundation.  It is also included in the file `etc/ORDERS' in the
  642. Emacs distribution.  For further information, write to
  643.  
  644.      Free Software Foundation
  645.      675 Mass Ave
  646.      Cambridge, MA 02139
  647.      USA
  648.  
  649.    The income from distribution fees goes to support the foundation's
  650. purpose: the development of new free software, and improvements to our
  651. existing programs including GNU Emacs.
  652.  
  653.    If you find GNU Emacs useful, please *send a donation* to the Free
  654. Software Foundation to support our work.  Donations to the Free
  655. Software Foundation are tax deductible.  If you use GNU Emacs at your
  656. workplace, suggest that the company make a donation.  If company policy
  657. is unsympathetic to the idea of donating to charity, you might instead
  658. suggest ordering a CD-ROM from the Foundation occasionally, or
  659. subscribing to periodic updates.
  660.  
  661. 
  662. File: emacs,  Node: Copying,  Next: Intro,  Prev: Distrib,  Up: Top
  663.  
  664. GNU GENERAL PUBLIC LICENSE
  665. **************************
  666.  
  667.                          Version 2, June 1991
  668.  
  669.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  670.      675 Mass Ave, Cambridge, MA 02139, USA
  671.      
  672.      Everyone is permitted to copy and distribute verbatim copies
  673.      of this license document, but changing it is not allowed.
  674.  
  675. Preamble
  676. ========
  677.  
  678.    The licenses for most software are designed to take away your
  679. freedom to share and change it.  By contrast, the GNU General Public
  680. License is intended to guarantee your freedom to share and change free
  681. software--to make sure the software is free for all its users.  This
  682. General Public License applies to most of the Free Software
  683. Foundation's software and to any other program whose authors commit to
  684. using it.  (Some other Free Software Foundation software is covered by
  685. the GNU Library General Public License instead.)  You can apply it to
  686. your programs, too.
  687.  
  688.    When we speak of free software, we are referring to freedom, not
  689. price.  Our General Public Licenses are designed to make sure that you
  690. have the freedom to distribute copies of free software (and charge for
  691. this service if you wish), that you receive source code or can get it
  692. if you want it, that you can change the software or use pieces of it in
  693. new free programs; and that you know you can do these things.
  694.  
  695.    To protect your rights, we need to make restrictions that forbid
  696. anyone to deny you these rights or to ask you to surrender the rights.
  697. These restrictions translate to certain responsibilities for you if you
  698. distribute copies of the software, or if you modify it.
  699.  
  700.    For example, if you distribute copies of such a program, whether
  701. gratis or for a fee, you must give the recipients all the rights that
  702. you have.  You must make sure that they, too, receive or can get the
  703. source code.  And you must show them these terms so they know their
  704. rights.
  705.  
  706.    We protect your rights with two steps: (1) copyright the software,
  707. and (2) offer you this license which gives you legal permission to copy,
  708. distribute and/or modify the software.
  709.  
  710.    Also, for each author's protection and ours, we want to make certain
  711. that everyone understands that there is no warranty for this free
  712. software.  If the software is modified by someone else and passed on, we
  713. want its recipients to know that what they have is not the original, so
  714. that any problems introduced by others will not reflect on the original
  715. authors' reputations.
  716.  
  717.    Finally, any free program is threatened constantly by software
  718. patents.  We wish to avoid the danger that redistributors of a free
  719. program will individually obtain patent licenses, in effect making the
  720. program proprietary.  To prevent this, we have made it clear that any
  721. patent must be licensed for everyone's free use or not licensed at all.
  722.  
  723.    The precise terms and conditions for copying, distribution and
  724. modification follow.
  725.  
  726.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  727.  
  728.   0. This License applies to any program or other work which contains a
  729.      notice placed by the copyright holder saying it may be distributed
  730.      under the terms of this General Public License.  The "Program",
  731.      below, refers to any such program or work, and a "work based on
  732.      the Program" means either the Program or any derivative work under
  733.      copyright law: that is to say, a work containing the Program or a
  734.      portion of it, either verbatim or with modifications and/or
  735.      translated into another language.  (Hereinafter, translation is
  736.      included without limitation in the term "modification".)  Each
  737.      licensee is addressed as "you".
  738.  
  739.      Activities other than copying, distribution and modification are
  740.      not covered by this License; they are outside its scope.  The act
  741.      of running the Program is not restricted, and the output from the
  742.      Program is covered only if its contents constitute a work based on
  743.      the Program (independent of having been made by running the
  744.      Program).  Whether that is true depends on what the Program does.
  745.  
  746.   1. You may copy and distribute verbatim copies of the Program's
  747.      source code as you receive it, in any medium, provided that you
  748.      conspicuously and appropriately publish on each copy an appropriate
  749.      copyright notice and disclaimer of warranty; keep intact all the
  750.      notices that refer to this License and to the absence of any
  751.      warranty; and give any other recipients of the Program a copy of
  752.      this License along with the Program.
  753.  
  754.      You may charge a fee for the physical act of transferring a copy,
  755.      and you may at your option offer warranty protection in exchange
  756.      for a fee.
  757.  
  758.   2. You may modify your copy or copies of the Program or any portion
  759.      of it, thus forming a work based on the Program, and copy and
  760.      distribute such modifications or work under the terms of Section 1
  761.      above, provided that you also meet all of these conditions:
  762.  
  763.        a. You must cause the modified files to carry prominent notices
  764.           stating that you changed the files and the date of any change.
  765.  
  766.        b. You must cause any work that you distribute or publish, that
  767.           in whole or in part contains or is derived from the Program
  768.           or any part thereof, to be licensed as a whole at no charge
  769.           to all third parties under the terms of this License.
  770.  
  771.        c. If the modified program normally reads commands interactively
  772.           when run, you must cause it, when started running for such
  773.           interactive use in the most ordinary way, to print or display
  774.           an announcement including an appropriate copyright notice and
  775.           a notice that there is no warranty (or else, saying that you
  776.           provide a warranty) and that users may redistribute the
  777.           program under these conditions, and telling the user how to
  778.           view a copy of this License.  (Exception: if the Program
  779.           itself is interactive but does not normally print such an
  780.           announcement, your work based on the Program is not required
  781.           to print an announcement.)
  782.  
  783.      These requirements apply to the modified work as a whole.  If
  784.      identifiable sections of that work are not derived from the
  785.      Program, and can be reasonably considered independent and separate
  786.      works in themselves, then this License, and its terms, do not
  787.      apply to those sections when you distribute them as separate
  788.      works.  But when you distribute the same sections as part of a
  789.      whole which is a work based on the Program, the distribution of
  790.      the whole must be on the terms of this License, whose permissions
  791.      for other licensees extend to the entire whole, and thus to each
  792.      and every part regardless of who wrote it.
  793.  
  794.      Thus, it is not the intent of this section to claim rights or
  795.      contest your rights to work written entirely by you; rather, the
  796.      intent is to exercise the right to control the distribution of
  797.      derivative or collective works based on the Program.
  798.  
  799.      In addition, mere aggregation of another work not based on the
  800.      Program with the Program (or with a work based on the Program) on
  801.      a volume of a storage or distribution medium does not bring the
  802.      other work under the scope of this License.
  803.  
  804.   3. You may copy and distribute the Program (or a work based on it,
  805.      under Section 2) in object code or executable form under the terms
  806.      of Sections 1 and 2 above provided that you also do one of the
  807.      following:
  808.  
  809.        a. Accompany it with the complete corresponding machine-readable
  810.           source code, which must be distributed under the terms of
  811.           Sections 1 and 2 above on a medium customarily used for
  812.           software interchange; or,
  813.  
  814.        b. Accompany it with a written offer, valid for at least three
  815.           years, to give any third party, for a charge no more than your
  816.           cost of physically performing source distribution, a complete
  817.           machine-readable copy of the corresponding source code, to be
  818.           distributed under the terms of Sections 1 and 2 above on a
  819.           medium customarily used for software interchange; or,
  820.  
  821.        c. Accompany it with the information you received as to the offer
  822.           to distribute corresponding source code.  (This alternative is
  823.           allowed only for noncommercial distribution and only if you
  824.           received the program in object code or executable form with
  825.           such an offer, in accord with Subsection b above.)
  826.  
  827.      The source code for a work means the preferred form of the work for
  828.      making modifications to it.  For an executable work, complete
  829.      source code means all the source code for all modules it contains,
  830.      plus any associated interface definition files, plus the scripts
  831.      used to control compilation and installation of the executable.
  832.      However, as a special exception, the source code distributed need
  833.      not include anything that is normally distributed (in either
  834.      source or binary form) with the major components (compiler,
  835.      kernel, and so on) of the operating system on which the executable
  836.      runs, unless that component itself accompanies the executable.
  837.  
  838.      If distribution of executable or object code is made by offering
  839.      access to copy from a designated place, then offering equivalent
  840.      access to copy the source code from the same place counts as
  841.      distribution of the source code, even though third parties are not
  842.      compelled to copy the source along with the object code.
  843.  
  844.   4. You may not copy, modify, sublicense, or distribute the Program
  845.      except as expressly provided under this License.  Any attempt
  846.      otherwise to copy, modify, sublicense or distribute the Program is
  847.      void, and will automatically terminate your rights under this
  848.      License.  However, parties who have received copies, or rights,
  849.      from you under this License will not have their licenses
  850.      terminated so long as such parties remain in full compliance.
  851.  
  852.   5. You are not required to accept this License, since you have not
  853.      signed it.  However, nothing else grants you permission to modify
  854.      or distribute the Program or its derivative works.  These actions
  855.      are prohibited by law if you do not accept this License.
  856.      Therefore, by modifying or distributing the Program (or any work
  857.      based on the Program), you indicate your acceptance of this
  858.      License to do so, and all its terms and conditions for copying,
  859.      distributing or modifying the Program or works based on it.
  860.  
  861.   6. Each time you redistribute the Program (or any work based on the
  862.      Program), the recipient automatically receives a license from the
  863.      original licensor to copy, distribute or modify the Program
  864.      subject to these terms and conditions.  You may not impose any
  865.      further restrictions on the recipients' exercise of the rights
  866.      granted herein.  You are not responsible for enforcing compliance
  867.      by third parties to this License.
  868.  
  869.   7. If, as a consequence of a court judgment or allegation of patent
  870.      infringement or for any other reason (not limited to patent
  871.      issues), conditions are imposed on you (whether by court order,
  872.      agreement or otherwise) that contradict the conditions of this
  873.      License, they do not excuse you from the conditions of this
  874.      License.  If you cannot distribute so as to satisfy simultaneously
  875.      your obligations under this License and any other pertinent
  876.      obligations, then as a consequence you may not distribute the
  877.      Program at all.  For example, if a patent license would not permit
  878.      royalty-free redistribution of the Program by all those who
  879.      receive copies directly or indirectly through you, then the only
  880.      way you could satisfy both it and this License would be to refrain
  881.      entirely from distribution of the Program.
  882.  
  883.      If any portion of this section is held invalid or unenforceable
  884.      under any particular circumstance, the balance of the section is
  885.      intended to apply and the section as a whole is intended to apply
  886.      in other circumstances.
  887.  
  888.      It is not the purpose of this section to induce you to infringe any
  889.      patents or other property right claims or to contest validity of
  890.      any such claims; this section has the sole purpose of protecting
  891.      the integrity of the free software distribution system, which is
  892.      implemented by public license practices.  Many people have made
  893.      generous contributions to the wide range of software distributed
  894.      through that system in reliance on consistent application of that
  895.      system; it is up to the author/donor to decide if he or she is
  896.      willing to distribute software through any other system and a
  897.      licensee cannot impose that choice.
  898.  
  899.      This section is intended to make thoroughly clear what is believed
  900.      to be a consequence of the rest of this License.
  901.  
  902.   8. If the distribution and/or use of the Program is restricted in
  903.      certain countries either by patents or by copyrighted interfaces,
  904.      the original copyright holder who places the Program under this
  905.      License may add an explicit geographical distribution limitation
  906.      excluding those countries, so that distribution is permitted only
  907.      in or among countries not thus excluded.  In such case, this
  908.      License incorporates the limitation as if written in the body of
  909.      this License.
  910.  
  911.   9. The Free Software Foundation may publish revised and/or new
  912.      versions of the General Public License from time to time.  Such
  913.      new versions will be similar in spirit to the present version, but
  914.      may differ in detail to address new problems or concerns.
  915.  
  916.      Each version is given a distinguishing version number.  If the
  917.      Program specifies a version number of this License which applies
  918.      to it and "any later version", you have the option of following
  919.      the terms and conditions either of that version or of any later
  920.      version published by the Free Software Foundation.  If the Program
  921.      does not specify a version number of this License, you may choose
  922.      any version ever published by the Free Software Foundation.
  923.  
  924.  10. If you wish to incorporate parts of the Program into other free
  925.      programs whose distribution conditions are different, write to the
  926.      author to ask for permission.  For software which is copyrighted
  927.      by the Free Software Foundation, write to the Free Software
  928.      Foundation; we sometimes make exceptions for this.  Our decision
  929.      will be guided by the two goals of preserving the free status of
  930.      all derivatives of our free software and of promoting the sharing
  931.      and reuse of software generally.
  932.  
  933.                                 NO WARRANTY
  934.  
  935.  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  936.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  937.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  938.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  939.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  940.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  941.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  942.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  943.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  944.      SERVICING, REPAIR OR CORRECTION.
  945.  
  946.  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  947.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  948.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  949.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  950.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  951.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  952.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  953.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  954.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  955.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  956.  
  957.                       END OF TERMS AND CONDITIONS
  958.  
  959. How to Apply These Terms to Your New Programs
  960. =============================================
  961.  
  962.    If you develop a new program, and you want it to be of the greatest
  963. possible use to the public, the best way to achieve this is to make it
  964. free software which everyone can redistribute and change under these
  965. terms.
  966.  
  967.    To do so, attach the following notices to the program.  It is safest
  968. to attach them to the start of each source file to most effectively
  969. convey the exclusion of warranty; and each file should have at least
  970. the "copyright" line and a pointer to where the full notice is found.
  971.  
  972.      ONE LINE TO GIVE THE PROGRAM'S NAME AND AN IDEA OF WHAT IT DOES.
  973.      Copyright (C) 19YY  NAME OF AUTHOR
  974.      
  975.      This program is free software; you can redistribute it and/or
  976.      modify it under the terms of the GNU General Public License
  977.      as published by the Free Software Foundation; either version 2
  978.      of the License, or (at your option) any later version.
  979.      
  980.      This program is distributed in the hope that it will be useful,
  981.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  982.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  983.      GNU General Public License for more details.
  984.      
  985.      You should have received a copy of the GNU General Public License
  986.      along with this program; if not, write to the Free Software
  987.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  988.  
  989.    Also add information on how to contact you by electronic and paper
  990. mail.
  991.  
  992.    If the program is interactive, make it output a short notice like
  993. this when it starts in an interactive mode:
  994.  
  995.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  996.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  997.      type `show w'.  This is free software, and you are welcome
  998.      to redistribute it under certain conditions; type `show c'
  999.      for details.
  1000.  
  1001.    The hypothetical commands `show w' and `show c' should show the
  1002. appropriate parts of the General Public License.  Of course, the
  1003. commands you use may be called something other than `show w' and `show
  1004. c'; they could even be mouse-clicks or menu items--whatever suits your
  1005. program.
  1006.  
  1007.    You should also get your employer (if you work as a programmer) or
  1008. your school, if any, to sign a "copyright disclaimer" for the program,
  1009. if necessary.  Here is a sample; alter the names:
  1010.  
  1011.      Yoyodyne, Inc., hereby disclaims all copyright
  1012.      interest in the program `Gnomovision'
  1013.      (which makes passes at compilers) written
  1014.      by James Hacker.
  1015.      
  1016.      SIGNATURE OF TY COON, 1 April 1989
  1017.      Ty Coon, President of Vice
  1018.  
  1019.    This General Public License does not permit incorporating your
  1020. program into proprietary programs.  If your program is a subroutine
  1021. library, you may consider it more useful to permit linking proprietary
  1022. applications with the library.  If this is what you want to do, use the
  1023. GNU Library General Public License instead of this License.
  1024.  
  1025.